package task9;

public class TCL extends TV {

    boolean cloud;
    TCL(){}
    TCL(String brand,byte size,boolean cloud){
        this.size=size;
        this.brand=brand;
        this.cloud=cloud;
    }
    @Override
    void output(){
        if(cloud==false){
            super.output();
        }else {
            System.out.println("电视机牌子:"+this.brand+",尺寸"+this.size+",是云电视");
        }
    }
}
